/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cw.biz;

import cw.entity.Subject;
import cw.server.ServerConfig;
import cw.server.ServerInterface;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author VinhTC
 */
public class SubjectBiz {

    /**
     * this method use to get all Subject
     * @return- List <Subject> 
     */
    public List<Subject> getAllSubject() {
        try {
            List<Subject> lstSubject = new ArrayList<Subject>();
            ServerConfig sc = new ServerConfig();
            ServerInterface stub = sc.Setup();
            lstSubject = stub.getAllSubject();
            return lstSubject;

        } catch (Exception e) {
            return null;
        }
    }
}
